//
//  Standby_01_Right.swift
//  TimMusic
//
//  Created by nkl on 2024/10/25.
//

import Foundation
import SwiftUI

struct Small_StandbyRight_02: View {
    var isMedium: Bool = false
    var body: some View {
        ZStack {
            Color.black.ignoresSafeArea()
            VStack {
                HStack {
                    if isMedium {
                        Spacer()
                        Image("ic_standby_fav").resizable().frame(width: 20, height: 20)
                        Text("Now is").font(.system(size: 12)).foregroundColor(.init(hex: "#C74B2A").opacity(0.8))

                    } else {
                        Image("ic_standby_fav").resizable().frame(width: 20, height: 20)
                        Text("Now is").font(.system(size: 12)).foregroundColor(.init(hex: "#C74B2A").opacity(0.8))
                        Spacer()
                    }
                }
                Spacer()
                HStack {
                    if isMedium {
                        Text(DateFormatter().simpleMonthAndDay()).font(.system(size: 12)).foregroundColor(.init(hex: "#C74B2A").opacity(0.8))
                        Spacer()
                        Image("ic_standby_air").resizable().frame(width: 20, height: 20)

                    } else {
                        Spacer()
                        Text(DateFormatter().simpleMonthAndDay()).font(.system(size: 12)).foregroundColor(.init(hex: "#C74B2A").opacity(0.8))
                        Image("ic_standby_air").resizable().frame(width: 20, height: 20)
                    }
                }
            }.padding()
            TimeTextLabel(style: .all, date: Date(), font: .HarmonyOSSansSCBold(size: 30), color: "#C74B2A".toColor())
        }
    }
}

#Preview {
    Small_StandbyRight_01()
}
